#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent), ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    move(500,200);//刚开始创建的窗口的位置
    setMaximumSize(1200,640);//最大窗口大小
    setStyleSheet("background:cyan");//设置窗体的背景
    setWindowTitle("QT太棒了");
    setWindowIcon(QIcon(":/new/prefix1/images/test.ico"));
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_test_Push_Button1_clicked()
{
    this->new_dig1.setWindowIcon(QIcon(":/new/prefix1/images/favicon.ico"));
    new_dig1.show();
}

